#ifndef CHARGEN_HPP_
#define CHARGEN_HPP_

/*******************************************************************************
 ** Government Sanctioned Espionage RPG Server                                **
 ** http://www.government-sanctioned.us/                                      **
 **===========================================================================**
 ** Name: chargen.hpp                                                         **
 ** Description: Character generator main file.                               **
 **                                                                           **
 ** Open Source Initiative (OSI) Approved License                             **
 **                                                                           **
 ** The contents of this file are subject to the terms of the                 **
 ** Common Development and Distribution License, Version 1.0 only             **
 ** (the "License").  You may not use this file except in compliance          **
 ** with the License.                                                         **
 **                                                                           **
 ** You can find a copy of the license in the LICENSE file within             **
 ** this distribution or at $WIKI/display/GOVT/License-software.              **
 ** Software distributed under the License is distributed on an "AS IS"       **
 ** basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.           **
 ** See the License for the specific language governing permissions           **
 ** and limitations under the License.                                        **
 **                                                                           **
 ** When distributing Covered Code, include this CDDL header in each          **
 ** file and include the License file at $GAME_DIR/LICENSE.                   **
 ** If applicable, add the following below this header, with the indicated    **
 ** fields enclosed by brackets "[]" replaced with your own identifying       **
 ** information: Portions Copyright [yyyy] [name of copyright owner]          **
 **                                                                           **
 ** Copyright (c) 2009-2012  Barry Gian James <gian@gamingods.net>            **
 ** All rights reserved.                                                      **
 ******************************************************************************/
// $HeadURL$
// Modified $Date$ by $Author$
// $Id$


#define DEFAULT_CP		30
#define DEFAULT_ATTR	1
#define ATTR_PLUS_2	14

enum class AttributeType
{
	STR, DEX, CON, INT, WIS, CHA
};

class Attribute
{
public:
	Attribute();
	unsigned int	operator () (AttributeType t);
	int		Bonus(AttributeType);

	void	Strength(unsigned int v) { strength = v; }
	void	Dexterity(unsigned int v) { dexterity = v; }
	void	Constitution(unsigned int v) { constitution = v; }
	void	Intelligence(unsigned int v) { intelligence = v; }
	void	Wisdom(unsigned int v) { wisdom = v; }
	void	Charisma(unsigned int v) { charisma = v; }

	void			Print();
	void			Randomize();

private:
	unsigned int	strength;
	unsigned int	dexterity;
	unsigned int	constitution;
	unsigned int	intelligence;
	unsigned int	wisdom;
	unsigned int	charisma;
	unsigned int	cp;
};



#endif /* CHARGEN_HPP_ */
